package com.core.family.biz.yizhao.domain.po;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-6-14 17:05:09
 * @Description PO对象 一招分类
 */
@Data
@TableName(value = "yz_kind")
public class YzKind implements Serializable {


    /*
     *
     */
    @TableField(value = "id")
    private Integer id;

    /*
     *  名称
     */
    @NotNull(message = "名称不能为空")
    @TableField(value = "name")
    private String name;

    /*
     *  代码
     */

    @TableField(value = "code")
    private String code;

    /*
     *  图标
     */
    @TableField(value = "icon")
    private String icon;

    /*
     *  是否展示
     */
    @TableField(value = "`show`")
    private Integer show;

    /*
     *  排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /*
     *  子菜单一次展示数量
     */
    @TableField(value = "show_number")
    private Integer showNumber;

    /*
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "update_time")
    private Date updateTime;

    /*
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time")
    private Date createTime;

    /*
     *  是否删除
     */
    @TableField(value = "is_del")
    private Integer isDel;


    private  String type;

}
